let SYSTEM_INFO=uni.getSystemInfoSync()
	// console.log(SYSTEM_INFO);
		
export const  getBarHeight=()=>{
		return SYSTEM_INFO.statusBarHeight
	}

export  const getTitleBarHeight=()=>{
	if(uni.getMenuButtonBoundingClientRect){
		let {top,height}=uni.getMenuButtonBoundingClientRect()
		return   height+(top-SYSTEM_INFO.statusBarHeight)*2
	}else{
		return 50
	}
}

export const NavBarHeight=()=> getBarHeight()+getTitleBarHeight()